#include "rectangle.h"

//Programmer: Nguyen Xuan Hoai
//Function: compute a rectangle area and circumference using calling by reference
//Input : sides a and b of the rectangle
//Exception handling: none
//Algorithm: s=a*b; c=2*(a+b)

void rect(double a, double b, double *s, double *c)
{
  *s=a*b;
  *c=2*(a+b);
}
